package com.lzw.mapper.student;

import com.lzw.pojo.RepairRequest;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RRM {
    @Insert("INSERT INTO dormitorymanagement.repairrequest(student, request_date, issue_description, dormitory_id) VALUES (#{student}, #{requestDate}, #{issueDescription}, #{dormitoryId})")
    void add(RepairRequest repairRequest);

    List<RepairRequest> get(String student);
}
